<!DOCTYPE html>
<html lang="zh">
<head>
	#@header()
</head>
<body class="gray-bg">
	<div class="container-div">
		<div class="row">
			#if(permission != null && permission.get('select')!= null )
			<div class="col-sm-12 search-collapse" >
				<form id="role-form">
					<div class="select-list">
						<ul>
							<li>
								内容：<input type="text" name="title"/>
							</li>

							<li>
								<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
							</li>
						</ul>
					</div>
				</form>
			</div>
			#end

	        
	        <div class="col-sm-12 select-table table-striped">
			    <table id="bootstrap-table"></table>
			</div>
		</div>
	</div>


	#@footer()
	<script type="text/javascript">
		var editFlag = true;
		var removeFlag = true;
		$(function() {
		    var options = {
		        url: "#(prj)/admin/oplog/paginate",
		        createUrl: "#(prj)/admin/oplog/add",
		        updateUrl: "#(prj)/admin/oplog/edit/{id}",
		        removeUrl: "#(prj)/admin/oplog/delete/{id}",
		        exportUrl: "#(prj)/admin/oplog/export",
		        sortName: "create_time",
		        modalName: "管理员",
		        columns: [
		        {
		            field: 'username',
		            title: '昵称'
		        },
		        {
		            field: 'classname',
		            title: '类型',
		        },
				{
					field: 'params',
					title: '参数',
                    formatter: function (value, row, index) {
                        return $.table.tooltip(value,60,1);
                        //return $.table.imageView(value);
                    }
				},
				{
					field: 'methodname',
					title: '操作',
				},

		        {
		            field: 'create_time',
		            title: '时间',
		            sortable: true
		        },
		      /*  {
		            title: '操作',
		            align: 'center',
		            formatter: function(value, row, index) {
		            	if (row.roleId != 1) {
		                    var actions = []
                        #if(permission != null && permission.get('delete')!= null)
                                actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a> ')
                        #end

		                    return actions.join('');
		            	} else {
		                    return "";
		                }
		            }
		        }*/
		        ]
		    };
		    $.table.init(options);
		});

		

	</script>
</body>
</html>